CMake modern create translations - #8062
Conversation
197bc49 to
75e533e
Compare
|
|
To avoid the clang-tidy warnings we need to disable all checks. See at the top of |
|
Thanks for you explanation. I don't get which folder needs the additional clang-tidy configuration file. My change does not add generated files in a new directory, does it? |
75e533e to
d940500
Compare
|
I see no reason to hold this back. Please consider merging. |
d940500 to
5bafd3b
Compare
|
5bafd3b to
5d409dd
Compare
Use modern qt_add_translations instead.
5d409dd to
201e611
Compare
|
I don't know much about cmake and asked AI to review this. In my experience AI reviews are often mostly wrong - take this AI-review below with a mountain of salt: The deprecation claim checks out. Qt's own docs for qt_create_translation state it's deprecated in favor of the target-based qt6_add_lupdate/qt6_add_translations (Qt docs But the patch drops something it doesn't replace. The old code did: This isn't cosmetic: gui/translationhandler.cpp loads translations from disk at runtime (QFile::exists(datadir/lang/...), mTranslator->load(...)), not from a Qt resource. There's also direct corroborating evidence in the repo: .github/workflows/release-windows.yml does Minor secondary note: the PR deletes the comment # TODO: passing "-no-obsolete" here breaks the translations and then passes LUPDATE_OPTIONS "-no-obsolete" anyway. That's probably fine in Verdict: moving off QT_CREATE_TRANSLATION is the right direction, but this PR isn't a correct/complete fix — it needs to wire qms/QM_FILES_OUTPUT_VARIABLE back into the install() call and |



QT_CREATE_TRANSLATIONis deprecated.